package cn.sc.summer.rabbitmq.builder;

import com.alibaba.fastjson.JSONObject;

/**
 * 类名：具体构建者的构建过程配置
 *
 * @author a-xin
 * @date 2023/9/5 14:54
 */
public class RabbitMessageBuilderDirector {

    private final RabbitMessageBuilder builder;

    public RabbitMessageBuilderDirector(RabbitMessageBuilder builder) {
        this.builder = builder;
    }

    public JSONObject build() {
        builder.buildRabbitMessage();
        return builder.build();
    }

}


